package modex;

public class Document {

	private int idDocument = 0;
	private String nomDocument = "";
	
	public Document() {}
	public Document(int id, String nom) {
		this.idDocument = id;
		this.nomDocument = nom;
	}

	public int getIdDocument() {
		return idDocument;
	}

	public void setIdDocument(int idDocument) {
		this.idDocument = idDocument;
	}

	public String getNomDocument() {
		return nomDocument;
	}

	public void setNomDocument(String nomDocument) {
		this.nomDocument = nomDocument;
	}
	
	@Override
	public String toString() {
		String str = "DOCUMENT " + this.getIdDocument() + 
						" = "+ this.getNomDocument()+ "\n";
		return str;
	}
}
